import 'package:flutter/material.dart';
import 'package:learning_content_admin_pannel.core/core/presentation/theme/styles.dart';
import 'package:learning_content_admin_pannel.core/core/presentation/theme/theme.dart';
import 'package:learning_content_admin_pannel.core/core/presentation/ui_kit/tile_text_button/widget.dart';

part 'theme/styles.dart';

part 'theme/text_theme.dart';

part 'theme/theme.dart';

part 'view.dart';

class TileSecondaryTextButton extends StatelessWidget {
  const TileSecondaryTextButton({
    required this.title,
    required this.onPressed,
    super.key,
  });

  final String title;
  final VoidCallback onPressed;

  @override
  Widget build(BuildContext context) {
    return _TileSecondaryTextButtonTheme(
      brightness: CoreTheme.of(context).brightness,
      child: _TileSecondaryTextButtonView(
        title: title,
        onPressed: onPressed,
      ),
    );
  }
}
